package club.caihappy.test;

import club.caihappy.Condition.MainConfigOfLifeCycle;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import sun.java2d.pipe.SpanIterator;

/**
 * Created by DELL on 2021/10/5
 **/
public class IOCTest_LifeCycle {
    @Test
    public void test1() {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfigOfLifeCycle.class);
        System.out.println("容器创建完成");
//        Object car = applicationContext.getBean("car");
    }
}
